
<%@page import="cn.yi.newsys.pojo.User"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%-- <%
    String userName="";
    //权限验证
    Object obj=session.getAttribute("User");
    if(obj==null){
        out.println("<script>alert('您没有权限进入......');location.href='../index.jsp';</script>");
    }else{
        if(obj instanceof User){
           User user=(User)obj;
           userName=user.getUserName();  
        }
    }
%> --%>
        <div class="col-md-3 left_col">
            <div class="left_col scroll-view">
                <div class="navbar nav_title" style="border: 0;">
                    <a href="index.html" class="site_title"><i class="fa fa-paw"></i> <span>新闻中国</span></a>
                </div>

                <div class="clearfix"></div>

                <!-- menu profile quick info -->
                <div class="profile">
                    <div class="profile_pic">
                        <img src="../images/img.jpg" alt="..." class="img-circle profile_img">
                    </div>
                    <div class="profile_info">
                        <span>欢迎您,</span>

                        <h2>${User.userName }</h2>
                    </div>
                </div>
                <!-- /menu profile quick info -->

                <br/>

                <!-- sidebar menu -->
                <div id="sidebar-menu" class="main_menu_side hidden-print main_menu">
                    <div class="menu_section">
                        <h3>管理员</h3>
                        <ul class="nav side-menu">
                            <li><a><i class="fa fa-bolt"></i>新闻管理<span class="fa fa-chevron-down"></span></a>
                                <ul class="nav child_menu">
                                    <li><a href="newsadd.jsp">发布新闻</a></li>
                                    <li><a href="searchnews">新闻列表</a></li>
                                </ul>
                            </li>
                            <li><a><i class="fa fa-edit"></i>用户管理<span class="fa fa-chevron-down"></span></a>
                                <ul class="nav child_menu">
                                    <li><a href="useradd.jsp">添加用户</a></li>
                                    <li><a href="searchuser">用户列表</a></li>
                                </ul>
                            </li>
                            <li><a><i class="fa fa-desktop"></i>主题管理<span
                                    class="fa fa-chevron-down"></span></a>
                                <ul class="nav child_menu">
                                    <li><a href="themeadd.jsp">添加主题</a></li>
                                    <li><a href="themelist.jsp">主题列表</a></li>
                                </ul>
                            </li>
                            <li><a><i class="fa fa-desktop"></i>评论管理<span
                                    class="fa fa-chevron-down"></span></a>
                                <ul class="nav child_menu">
                                    <li><a href="general_elements.html">评论列表</a></li>
                                </ul>
                            </li>
                            <li><a><i class="fa fa-table"></i>系统管理<span class="fa fa-chevron-down"></span></a>
                                <ul class="nav child_menu">
                                    <li><a href="tables.html">修改密码</a></li>
                                    <li><a href="tables_dynamic.html">权限管理</a></li>
                                    <li><a href="tables_dynamic.html">系统配置</a></li>
                                </ul>
                            </li>
                        </ul>
                    </div>
                </div>
                <!-- /sidebar menu -->

                <!-- /menu footer buttons -->
                <div class="sidebar-footer hidden-small">
                    <a data-toggle="tooltip" data-placement="top" title="Settings">
                        <span class="glyphicon glyphicon-cog" aria-hidden="true"></span>
                    </a>
                    <a data-toggle="tooltip" data-placement="top" title="FullScreen">
                        <span class="glyphicon glyphicon-fullscreen" aria-hidden="true"></span>
                    </a>
                    <a data-toggle="tooltip" data-placement="top" title="Lock">
                        <span class="glyphicon glyphicon-eye-close" aria-hidden="true"></span>
                    </a>
                    <a data-toggle="tooltip" data-placement="top" title="Logout">
                        <span class="glyphicon glyphicon-off" aria-hidden="true"></span>
                    </a>
                </div>
                <!-- /menu footer buttons -->
            </div>
        </div>

        <!-- top navigation -->
        <div class="top_nav">
            <div class="nav_menu">
                <nav>
                    <div class="nav toggle">
                        <a id="menu_toggle"><i class="fa fa-bars"></i></a>
                    </div>

                    <ul class="nav navbar-nav navbar-right">
                        <li class="">
                            <a href="javascript:;" class="user-profile dropdown-toggle" data-toggle="dropdown"
                               aria-expanded="false">
                                <img src="images/img.jpg" alt="">John Doe
                                <span class=" fa fa-angle-down"></span>
                            </a>
                            <ul class="dropdown-menu dropdown-usermenu pull-right">
                            	<!--pageContext.request.contextPath 可以获取当前页面的绝对路径  -->
                                <li><a href="${pageContext.request.contextPath }/douser?action=out"><i class="fa fa-sign-out pull-right"></i> Log Out</a></li>
                            </ul>
                        </li>
                    </ul>
                </nav>
            </div>
        </div>
        <!-- /top navigation -->